package backend.service.admin;

import backend.model.admin.CommuterData;
import backend.service.base.DBModelServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommuterDataServiceImpl extends DBModelServiceImpl<CommuterData> implements CommuterDataService {

    @Override
    public List<CommuterData> getAllCommuterDataForEmployee(int employeeId) {
        List<CommuterData> result = dbModelDao.findByNamedQueryAndParams("findAllCommuterDataForEmployee",
                new String[]{"employeeId"}, new Object[]{employeeId});
        return result;
    }

    @Override
    public Class<CommuterData> getEntityClass() {
        return CommuterData.class;
    }
}
